<div id="left-content">
    <div id="tree" style="min-height: 400px;">

    </div>
</div>

<div id="right-content">
    <h3 class="right-content-title">Chỉnh giá bán</h3>

    <div class="right-content-content">
        <table class="table-tools">
            <colgroup>
                <col style="width: 100px">
                <col>
            </colgroup>

            <tr>
                <td>Nhập mã nhanh</td>
                <td><input type="text" id="nhap-ma-nhanh" placeholder="Nhập mã mặt hàng" onkeydown="ChinhGia.NhapMaNhanh(this, event);" /></td>
            </tr>
            <tr style="display: none;">
                <td>Nhập mã nhanh</td>
                <td><input type="hidden" id="ma-mat-hang" value="-1" /></td>
            </tr>
            <tr>
                <td>Mặt hàng: </td>
                <td><span id="ten-mat-hang" style="font-weight: bold;">...</span></td>
            </tr>
            <tr>
                <td>Giá gốc: </td>
                <td>
                    <input id="txt-giagoc" value="0" disabled> đồng/<span id="txt-giagoc-donvi">đơn vị</span>
                </td>
            </tr>
            <tr>
                <td>Giá bán:</td>
                <td>
                    <input id="txt-giaban" value="0" disabled> đồng/<span id="txt-giaban-donvi">đơn vị</span>
                </td>
            </tr>
        </table>

        <button type="button" disabled id="chinhgia-submit" onclick="ChinhGia.ThemDieuChinhGia(this);"><span style="display: none;" class="button-loading fa fa-spin fa-refresh"></span> Lưu</button>

        <h4 style="margin-top: 30px;">Các lần điều chỉnh giá trước đây</h4>
        <table class="table-views">
            <colgroup>
                <col style="width: 40px">
                <col>
                <col style="width: 120px">
                <col style="width: 120px">
            </colgroup>
            <thead>
                <tr>
                    <td>STT</td>
                    <td>Thời gian</td>
                    <td>Giá gốc</td>
                    <td>Giá bán</td>
                </tr>
            </thead>
            <tbody>
                <tr class="default-row" style="display: none;">
                    <td class="stt" style="text-align: center;">1</td>
                    <td class="thoigianchinhgia" style="padding-left: 5px;">12:00 14/2/2015</td>
                    <td class="gia-goc" style="text-align: center;"></td>
                    <td class="gia-ban" style="text-align: center;"></td>
                </tr>
            </tbody>
            <tbody id="container">

            </tbody>
        </table>

    </div>
</div>

<div class="clear"></div>

<script>
    $("#txt-giagoc").autoNumeric(
        'init', {aSep: ',', mDec: '0', vMax: '999999999999999'}
    );
    $("#txt-giaban").autoNumeric(
        'init', {aSep: ',', mDec: '0', vMax: '999999999999999'}
    );
</script>